#include "srs_utest.hpp"

////////////////////////////////////////////////////////////////////////////

SRSEnvironment::SRSEnvironment() {
}

SRSEnvironment::~SRSEnvironment() {
}

void SRSEnvironment::TearDown() {
    testing::Environment::TearDown();
}

void SRSEnvironment::SetUp() {
    testing::Environment::SetUp();
}

////////////////////////////////////////////////////////////////////////////
int main(int argc, char** argv) {
    testing::AddGlobalTestEnvironment(new SRSEnvironment);
    testing::InitGoogleTest(&argc, argv);

    MockEmptyLog log(SrsLogLevel::Disabled);
    initISrsLog(&log);
    initISrsThread(nullptr);
    return RUN_ALL_TESTS();
}